package tp.pr4.items;

import tp.pr4.Player;
import tp.pr4.Room;

public class ExpirationItem extends Item{
	protected int times;
	
	public ExpirationItem(String id,String description,int time)
	{
		super(id,description);
		this.times=time;
	}
	public ExpirationItem(String id,String description)
	{
		super(id,description);
	}

	public boolean canBeUsed()
	{
		if(this.times>0)
		{
			return true;
		}
		return false;
	}
	public boolean use(Player who,Room where)
	{
		
		return true;
	}
	public String toString()
	{
	return super.toString()+"//"+this.times;
	}
}
